import request from '@/utils/request'

// 查询房屋空间列表
export function listRoomSpace(query) {
  return request({
    url: '/gcxt/roomSpace',
    method: 'get',
    params: query
  })
}

// 新增房屋空间
export function addRoomSpace(data) {
  return request({
    url: '/gcxt/roomSpace',
    method: 'post',
    data: data
  })
}

// 修改房屋空间
export function updateRoomSpace(data) {
  return request({
    url: '/gcxt/roomSpace',
    method: 'put',
    data: data
  })
}

// 删除房屋空间
export function delRoomSpace(id) {
  return request({
    url: '/gcxt/roomSpace/delete',
    method: 'delete',
    params: { id: id }
  })
}

